package cn.q3c.smzdm.web;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 跳转链接服务
 * 
 * 
 * @author wangxinning
 * 
 */
@Controller
public class LinkWebService {

	private static Logger logger = Logger.getLogger(LinkWebService.class);

	/**
	 * 链接跳转，中间可添加链接变换逻辑
	 * 
	 * @param jsonString
	 * @return
	 * @throws IOException
	 * @throws MalformedURLException
	 * @throws SQLException
	 */
	@RequestMapping(value = "/link.do", method = RequestMethod.GET)
	public String link(@RequestParam("url") String url) {

		logger.debug("link=" + url);
		return "redirect:" + url;
	}
}